package com.cskaoyan.catmall.dao;

import com.cskaoyan.catmall.model.vo.MarketOrderIdVo;
import com.cskaoyan.catmall.model.vo.RowsOrderVo;
import com.cskaoyan.catmall.model.vo.RowsUserVo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface StatisticsMapper {


    // 订单统计的订单数量，总额，客单价
    RowsOrderVo selectAllByOrder(@Param("beforeDay") Integer beforeDay, @Param("afterDay") Integer afterDay);
//    订单统计的用户数
    Integer getCustomersByOrder(@Param("beforeDay") Integer beforeDay, @Param("afterDay") Integer afterDay);
//    用户统计的用户数
    RowsUserVo selectAllByUser(Integer beforeDay, Integer afterDay);
//    通过订单表时间筛选id
    List<Integer> selectIdByOrder(Integer beforeDay, Integer afterDay);
//    通过订单ip 确认价格
    Double selectPriceByGoods(Integer id);
//    通过订单ip 确认数量
    Integer selectNumByGoods(Integer id);

    List<Integer> getOrderGoodsIdByOrderId(Integer orderId);
}
